package com.icxx.learn.controller;

import com.icxx.learn.service.RibbonService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * The type Ribbon controller.
 *
 * @author icxx
 * @version 1.0
 * @date 2019 -02-17 10:34:50
 */
@RestController
public class RibbonController {
    
    /**
     * The Ribbon service.
     */
    @Resource(name = "ribbonService")
    RibbonService ribbonService;
    
    /**
     * 测试方法
     *
     * @param name
     * @return the string
     */
    @GetMapping(value = "/ribbon")
    public String hi(@RequestParam String name) {
        return ribbonService.hiService(name);
    }
}
